import Vue from 'vue'
import Vuex from 'vuex'
// 引入注册模块
import register from './register/register'
// 引入用户模块
import user from './user/user'
// 引入栏目管理模块
import category from './category/category'
// 引入产品管理模块
import product from './product/product'
// 引入购物车模块
import shopcart from './shopcart/shopcart' 
//引入订单模块
import order from './order/order'
import order3 from './order/order3'
import order5 from './order/order5'
import orderlines from './order/orderlines'
// 引入订单待派单模块
import waitorder from './waitorder/waitorder' 
// 引入订单待确定模块
import confirmorder from './confirmorder/confirmorder' 
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    // 注册模块
    register,
    // 用户模块
    user,
    // 栏目模块
    category,
    // 产品模块
    product,
    // 购物车模块
    shopcart,
    //订单模块
    order,
    order3,
    order5,
    orderlines,
    // 代派单模块
    waitorder,
    // 待确认订单模块
    confirmorder,
  }
})
